PowerSNMP for .NET
GenerateLocalPrivacyKey(Byte[],Byte[]) Method




The EngineId to use for key generation. Cannot be a null reference (Nothing in Visual Basic) or empty.
The privacy password to use for key generation. Cannot be a null reference (Nothing in Visual Basic) or empty.
Generates local privacy keys for both key expansion algorithms using the specified engine ID and privacy password.
Syntax
Public Overloads Function GenerateLocalPrivacyKey( _
   ByVal engineId() As Byte, _
   ByVal privacyPassword() As Byte _
) As Byte()
Dim instance As User
Dim engineId() As Byte
Dim privacyPassword() As Byte
Dim value() As Byte
 
value = instance.GenerateLocalPrivacyKey(engineId, privacyPassword)
public byte[] GenerateLocalPrivacyKey( 
   byte[] engineId,
   byte[] privacyPassword
)
public: byte[]* GenerateLocalPrivacyKey( 
   byte[]* engineId,
   byte[]* privacyPassword
) 
public:
array<byte>^ GenerateLocalPrivacyKey( 
   array<byte>^ engineId,
   array<byte>^ privacyPassword
) 

Parameters

engineId
The EngineId to use for key generation. Cannot be a null reference (Nothing in Visual Basic) or empty.
privacyPassword
The privacy password to use for key generation. Cannot be a null reference (Nothing in Visual Basic) or empty.

Return Value

A byte array containing the generated local privacy key dictated by KeyExpansionAlgorithm.
Remarks
The generated keys are derived from the provided engineid and password. The generated keys will automatically be added to the LocalPrivacyKeys dictionary.
See Also

Reference

User Class
User Members
Overload List


PowerSNMP for .NET Documentation Version 8.1
© 2026 Dart Communications. All Rights Reserved.
Send comments on this topic